import { createRouter, createWebHistory } from 'vue-router'
import NewView from '../views/newView.vue'
import Chat from '../views/chat.vue'
import TemplateChat from '../views/templateChat.vue'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/new',
      name: 'new',
      component: NewView
    },
    {
      path: '/chat/:id',
      name: 'chat',
      component: Chat
    },
    {
      path: '/templateChat',
      name: 'templateChat',
      component: TemplateChat
    }
  ]
})

export default router
